<tc_include file="Public:header" />
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
  <div id="content-container" class="container">
      <!--<if condition="empty($avatar)">
       <div class="alert alert-warning alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <strong>您还没有头像</strong>。拥有一个独有的头像，老师和同学们能更容易关注到你哦～～ <a href="{:u('user/center/pic')}"" class="alert-link" target="_blank">点击设置</a>
	  </div>
	  <else/>
	    <if condition="empty($user['user_nicename'])">
	     <div class="alert alert-warning alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <strong>您还没设置昵称</strong>。请到个人设置里面设置～～ <a href="{:u('user/center/setting')}" class="alert-link" target="_blank">点击设置</a>
         </div>
        </if>
	 </if>-->
     <div class="row row-3-9">
        <div class="col-md-3">
           <div class="sidenav">
             <ul class="list-group">
             <if condition="$user_type neq 2">
               <li class="list-group-heading">我的教学</li>
               <li class="list-group-item "><a href="{:u('teacher/Center/index')}">课程管理</a></li>
               <li class="list-group-item "><a href="{:u('teacher/Center/add')}">课程发布</a></li>
               <li class="list-group-item"><a href="{:u('teacher/Center/sales')}">课程订单</a></li>
			   <li class="list-group-item"><a href="{:u('teacher/Center/ziyuanku')}">我的资源库</a></li>
             </if>
               <li class="list-group-heading" style="margin-top:10px;">我的学习</li>
               <li class="list-group-item" ><a href="{:u('user/center/index')}">我的课程</a></li>
               <li class="list-group-item"  ><a href="{:u('user/center/jihuo')}">激活课程</a></li>
               <li class="list-group-heading" style="margin-top:10px;">个人设置</li>
               <li class="list-group-item "><a href="{:u('user/center/setting')}"> 基础信息</a></li>
               <li class="list-group-item "><a href="{:u('user/center/pic')}">头像设置</a></li>
               <li class="list-group-item "><a href="{:u('user/center/security')}">修改密码</a></li>          
               <li class="list-group-heading" style="margin-top:10px;">账户中心</li>
               <li class="list-group-item "><a href="{:u('user/center/count')}">我的账户</a></li>
               <li class="list-group-item "><a href="{:u('user/center/order')}">我的订单</a></li>
               <li class="list-group-item "><a href="{:u('user/center/card')}">点卡充值</a></li>
            </ul>
          </div>
        </div>
        <div class="col-md-9">	
          <div class="panel panel-default panel-col">
	        <div class="panel-heading">教师申请表</div>
	          <div class="panel-body">
	          <if condition="empty($isapp)">
  		  	      <form id="user-profile-form" class="form-horizontal js-ajax-form" method="post" action="{:U('User/Center/application_post')}">
					
					<div class="form-group">
						<label class="col-md-2 control-label">教师姓名</label>
						<div class="col-md-7 controls">
							<input type="text" id="profile_weixin" name="t_name" required="required" class="form-control">
							<div class="help-block" style="display:none;"></div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-md-2 control-label">资格证</label>
						<div class="col-md-7 controls">
							<div  style="text-align: center;"><input type='hidden' name='zigezheng' id='thumb' required="required" value=''>
		     	              <a href='javascript:void(0);' onclick="flashupload('thumb_images', '附件上传','thumb',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;">
			                  <img src='__PUBLIC__/images/default-thumbnail.png' id='thumb_preview' width='450' height='250' style='cursor:hand' /></a>
                             </div>
							<div class="help-block" style="display:none;"></div>
						</div>
					</div>
					
					<div class="row">
						<div class="col-md-7 col-md-offset-2">
							<button id="profile-save-btn"  type="submit" class="btn btn-primary js-ajax-submit">提交申请</button>
						</div>
					</div>
			     </form>	
			     <else/>	
			          <if condition="$isapp['state']==1">
			             <div class="empty"><font color="green">恭喜您，您的申请已经通过审核！</font></div>
			          <else/>
			              <if condition="$isapp['state']==2">
			                  <div class="empty"><font color="blue">抱歉，您的申请未能通过审核，请核实资料重新申请！</font></div>
			              <else/>
			                  <div class="empty">申请已经提交，敬请等待！</div>
			              </if>   
			          </if>
                 </if>   
		      </div>
	         </div>
          </div>
     </div>
   </div>
 
<tc_include file="Public:scripts" />
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
<tc_include file="Public:footer" />